package LinkedList;

public class Test {
    public static void main(String[] args) {
        MyLinkedList test=new MyLinkedList();
        test.addFirst(11);
        test.remove(11);
        test.display();
        test.addFirst(22);
        test.addFirst(33);

        test.addLast(10);
        test.addLast(20);
        test.addLast(30);
        test.addLast(20);

        test.addIndex(2,50);
//        test.addIndex(12 ,20);

        System.out.println(test.contains(0));

        test.display();
        test.remove(33);
        test.display();
        test.remove(50);
        test.display();
        test.remove(30);
        test.display();

        test.removeAllKey(20);
        test.display();

        test.clear();
        test.display();

        System.out.println(test.size());
    }
}
